package org.aurora.module.user.facade.converter;

import org.aurora.module.user.api.facade.response.data.UserInfo;
import org.aurora.module.user.domain.entity.User;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

/**
 * UserConverter
 * <pre>
 * description:
 * create date: 2025-03-23 18:43:56
 * </pre>
 *
 * @author cao.yong
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface UserFacadeConverter {
    UserFacadeConverter INSTANCE = Mappers.getMapper(UserFacadeConverter.class);
    UserInfo mapToUserInfo(final User user);
}
